package com.yycx.module.bus.client.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;

/**
 * @author zyf
 */

public enum SettleTypeEnum {

    F(1, "渠道商结算"),
    D(2, "商务经理结算"),
    C(3, "片区服务商结算"),
    E(4, "商务总负责人结算");


    @EnumValue
    private Integer code;
    private String name;

    SettleTypeEnum(Integer code, String name) {
        this.code = code;
        this.name = name;
    }

    SettleTypeEnum() {

    }

    public static String getName(Integer code) {
        String v = "";
        for (SettleTypeEnum settleTypeEnum : values()) {
            if (settleTypeEnum.code.equals(code)) {
                v = settleTypeEnum.getName();
                break;
            }
        }
        return v;
    }

    public Integer getCode() {
        return this.code;
    }

    public String getName() {
        return this.name;
    }
}
